import express from 'express';
import controller from './controller';
import { authorizeHandleAdmin, authorizeHandlerNormal } from '../../middlewares/authorize';
export default express
  .Router()
  .post('/login', controller.login)
  .post('/signup', controller.singUp)
   .post('/change-password', authorizeHandlerNormal, controller.changePassword) // 添加鉴权中间件
     .get('/list', authorizeHandleAdmin, controller.getUserList)// 添加用户列表接口
     .post('/change-avatar', authorizeHandlerNormal, controller.changeAvatar)
 